package com.cmc.cloud.cmclink.doc.vo.multimodaltransport.containermanifest;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 集装箱清单导入 Request VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - 集装箱清单导入 Request VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Valid
public class ContainerManifestImportCnshaAllReqVO {
    @Schema(description = "导入的数据信息")
    @NotEmpty(message = "{ContainerManifestImportAllReqVO.containerImportReqVoList.notEmpty}")
    @Valid
    private List<ContainerManifestImportCnshaReqVO> containerImportReqVoList;

    @Schema(description = "支线船名-运输工具英文名称")
    @NotBlank(message = "{ContainerManifestImportAllReqVO.vesselCode.notBlank}")
    @Length(max = 50, message = "{ContainerManifestImportAllReqVO.vesselCode.length}")
    private String vesselCode;

    @Schema(description = "支线航次")
    @NotBlank(message = "{ContainerManifestImportAllReqVO.voyage.notBlank}")
    @Length(max = 50, message = "{ContainerManifestImportAllReqVO.voyage.length}")
    private String voyage;

    @Schema(description = "实际离岗时间")
    @NotBlank(message = "{ContainerManifestImportAllReqVO.atd.notBlank}")
    @Length(max = 50, message = "{ContainerManifestImportAllReqVO.atd.length}")
    private String atd;
}
